package com.tsing.cedap.rest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 账户流水表
 * </p>
 *
 * @author TheTsing
 * @since 2022-01-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cedap_account")
public class AccountEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 账户用户
     */
    private String userId;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 类型：1 余额  2 支出  3 充值  4 现金收入
     */
    private Integer type;

    /**
     * 说明
     */
    private String description;

    /**
     * 时间
     */
    private Date createTime;


}
